From: Nathan West Date: Mon, 1 Aug 2016 21:12:24 +0000 (-0400) Subject: apps: fix profile update reading end of lines X-Git-Tag: archive/raspbian/1.3-3+rpi1^2~21 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=957a00bb7e33b2dcf261c65b4af1eccd0c30f42a;p=volk.git apps: fix profile update reading end of lines Gbp-Pq: Name 0003-apps-fix-profile-update-reading-end-of-lines.patch --- diff --git a/apps/volk_profile.cc b/apps/volk_profile.cc index 2086e3f..51591cc 100644 --- a/apps/volk_profile.cc +++ b/apps/volk_profile.cc @@ -261,7 +261,7 @@ void read_results(std::vector *results, std::string path) found = 127; } str_size = config_str.size(); - char buffer[128]; + char buffer[128] = {'\0'}; config_str.copy(buffer, found + 1, 0); buffer[found] = '\0'; single_kernel_result.push_back(std::string(buffer));